package member.idcheck;
import java.io.*;
import java.sql.*;
import java.util.*;

import javax.servlet.*;
import javax.servlet.http.*;

import db.member.*;
public class Idcheck extends HttpServlet{
	public void doPost(HttpServletRequest request,
			  HttpServletResponse response){
			  try {requestPro(request,response);
			   } catch (Exception e) {
			    e.printStackTrace();
			   } 
			 }
	 public void doGet(HttpServletRequest request,
	  HttpServletResponse response){
	  try {requestPro(request,response);
	   } catch (Exception e) {
	    e.printStackTrace();
	   }
	 }
	 
	 public void requestPro(HttpServletRequest request,
			  HttpServletResponse response) throws Exception{
			  MemberDAO dao=new MemberDAO();
			  List zipcode = new ArrayList();
			  request.setCharacterEncoding("EUC-KR");
			  String shop_id=request.getParameter("shop_id");
			  int check=dao.confirmId(shop_id);
			   	
			  request.setAttribute("shop_id", shop_id);
			  request.setAttribute("check", check);
			  RequestDispatcher rd= request.getRequestDispatcher("idcheck.jsp");
					  rd.forward(request, response);
		}
}

